package com.tinem.platform.service.channel;

import com.baidu.fsg.uid.annotation.EnableCacheUid;
import com.tinem.platform.module.starter.jpa.annotation.EnableJpa;
import com.tinem.platform.module.starter.sdk.annotation.EnableMessage;
import com.tinem.platform.module.starter.web.annotation.EnableGatewayContext;
import com.tinem.platform.module.starter.web.annotation.EnableWeb;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className LinkApplication
 * @description TODO
 * @site 
 * @company 
 * @create 2020-07-08 19:48
 */
@Slf4j
@EnableWeb
@EnableJpa
@EnableMessage
@EnableCacheUid
@EnableGatewayContext
@EnableDiscoveryClient
@SpringBootApplication
public class ChannelServiceApplication {
    public static void main(String[] args) throws ClassNotFoundException {
        long startTime = System.currentTimeMillis();

        SpringApplication.run(ChannelServiceApplication.class, args);

        long endTime = System.currentTimeMillis();
        System.out.println("start success; duration:("+ (endTime - startTime) +");startTime:("+startTime+");endTime:("+ endTime +")");
        log.info("start success; duration:({});startTime:({});endTime:({})",(endTime - startTime),startTime,endTime);
    }
}
